<div class="ie_fix sort-handle">
    <span<?php echo $isActive ? '' : ' class="inactive"';?>><?php echo $hasChild ? CHtml::link('Toggle', '#', array('class'=>'collapse expand')) : '';?><span><?php echo CHtml::encode($model->title);?></span></span>
    <div class="page_edit_delete">
        <?php echo CHtml::link(CHtml::image(Yii::app()->theme->baseUrl.'/images/page/page_edit.png', 'Edit Page', array('height'=>29, 'width'=>23)), array('/Cms/admin/page/update', 'id'=>$model->id), array('title'=>'Edit Page', 'class'=>'sub_page'));?>&nbsp;
        <?php echo CHtml::link(CHtml::image(Yii::app()->theme->baseUrl.'/images/page/page_delete.png', 'Remove Page', array('height'=>29, 'width'=>23)), array('/Cms/admin/page/delete', 'id'=>$model->id), array('title'=>'Are you sure you want to remove '.CHtml::encode($model->title).'?', 'class'=>'page_delete'));?>
        <?php echo CHtml::link('Visit Page', (is_object($model->defaultUrl) ? Yii::app()->request->hostInfo.Yii::app()->request->baseUrl.'/'.ltrim($model->defaultUrl->url, '/') : '#'), array('title'=>'Visit Page', 'class'=>'page_link_inline'));?>
        <?php echo CHtml::link('Add Page', array('/Cms/admin/page/create', 'parent_id'=>$model->id), array('title'=>'Add Page', 'class'=>'sub_page add_page_inline'));?>
    </div>
</div>
